<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>创建Vue实例</title>
  </head>
  <body>
    <div id="app">
      <h1>{{msg1}}</h1>
      <a href="#">{{msg2}}</a>
      <a href="#">{{friend.name}}</a>
      <a href="#">{{friend.age}}</a>
      <div v-html="msg3"></div>
    </div>

    <script src="../vue.js"></script>
    <script>
      const app = new Vue({
        el: "#app",
        data: {
          msg1: "林远强",
          msg2: "成龙",
          friend: {
            name: "Tom",
            age: 18,
          },
          msg3: "<h3>林远强</h3>",
        },
      });
    </script>
  </body>
</html>
